package cn.edu.wynu.operator;

public class CompareOperatorLearn {
    public static void main(String[] args) {
        // 1.等于运算符,不等于运算符,运算完以后会得到一个布尔值,也就是真或假
        System.out.println("1.等于运算符,不等于运算符");
        int a = 10;
        int b = 20;
        System.out.println("a == b = " + (a == b));
        System.out.println("a != b = " + (a != b));
        System.out.println("*".repeat(50));

        // 2.大于运算符,小于运算符,大于等于运算符,小于等于运算符,运算完以后会得到一个布尔值,也就是真或假
        System.out.println("2.大于运算符,小于运算符,大于等于运算符,小于等于运算符");
        System.out.println("a > b = " + (a > b));
        System.out.println("a < b = " + (a < b));
        System.out.println("a >= b = " + (a >= b));
        System.out.println("a <= b = " + (a <= b));
    }
}
